load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "tf2_buffer_lib",
    srcs = [
        "buffer.cc",
    ],
    hdrs = [
        "buffer.h",
        "buffer_interface.h",
    ],
    deps = [
        "//cyber",
        "//modules/transform/proto:transform_proto",
    ],
)

cc_library(
    name = "transform_broadcaster_lib",
    srcs = [
        "transform_broadcaster.cc",
    ],
    hdrs = [
        "transform_broadcaster.h",
    ],
    deps = [
        "//cyber",
        "//modules/transform/proto:transform_proto",
    ],
)

cc_library(
    name = "static_transform_component_lib",
    srcs = [
        "static_transform_component.cc",
    ],
    hdrs = [
        "static_transform_component.h",
    ],
    copts = ['-DMODULE_NAME=\\"static_transform\\"'],
    deps = [
        "//cyber",
        "//modules/transform/proto:static_transform_conf_proto",
        "//modules/transform/proto:transform_proto",
        "@yaml_cpp//:yaml",
    ],
)

cc_test(
    name = "static_transform_component_test",
    size = "small",
    srcs = ["static_transform_component_test.cc"],
    deps = [
        ":static_transform_component_lib",
        "@gtest//:main",
    ],
)

cc_binary(
    name = "libstatic_transform_component.so",
    linkshared = True,
    linkstatic = False,
    deps = [":static_transform_component_lib"],
)

cpplint()
